/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package x10.enums;

public enum InterfaceMessage{
        STATUS_REQUEST_0X8B(-117),
        SET_CLOCK_0X9B(-101),
        UNKNOWN_0XAB(-85),
        UNKNOWN_0XBB(-69),
        MEMORY_DUMP_0XDB(-37),
        UNKNOWN(0);

    //int value of the interface message
    private final int code;

    /**
     * Constructor
     * @param code - int value of the interface command, or the byte of the command cast to an int
     */
    InterfaceMessage(int code){
        this.code = code;
    }

    /**
     * Utility method to get the byte value of the Remote code object
     * @return
     */
    public byte getByteValue(){
        return (byte) this.code;
    }

}